package com.xu.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class UserDto {
    private int userId;
    private String userName;
    private String roles;

    public UserDto(User user) {
        this.userId = user.getUserId();
        this.roles = user.getRoles();
        this.userName = user.getUserName();
    }
}
